package com.spring.api.web.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.spring.api.web.service.WxEducationService;
import com.wechat.api.web.dao.WxArticleMapper;
import com.wechat.api.web.dao.WxBusinessTypeMapper;
import com.wechat.api.web.dao.WxTeacherMapper;
import com.wechat.api.web.dao.WxVideoMapper;
import com.wechat.api.web.model.WxArticle;
import com.wechat.api.web.model.WxBusinessType;
import com.wechat.api.web.model.WxTeacher;
import com.wechat.api.web.model.WxVideo;

@Service
public class WxEducationServiceImpl implements WxEducationService {
	
	@Resource
	WxBusinessTypeMapper wxBusinessTypeMapper;
	@Resource
	WxArticleMapper wxArticleMapper;
	@Resource
	WxTeacherMapper wxTeacherMapper;
	@Resource
	WxVideoMapper wxVideoMapper;

	@Override
	public List<WxArticle> wxArticle(Map<String, Object> parm) {
		return wxArticleMapper.selectByParm(parm);
	}

	@Override
	public WxBusinessType wxBusinessType(Map<String, Object> parm) {
		return wxBusinessTypeMapper.selectByParm(parm);
	}

	@Override
	public List<WxTeacher> wxTeacher(Map<String, Object> parm) {
		return wxTeacherMapper.selectByParm(parm);
	}

	@Override
	public List<WxVideo> wxVideo(Map<String, Object> parm) {
		return wxVideoMapper.selectByParm(parm);
	}

	@Override
	public WxTeacher wxTeacherInfo(Map<String, Object> parm) {
		return wxTeacherMapper.selectWxTeacherInfo(parm);
	}
}
